/*
 * md5test.cpp
 * A md5 test driver
 *
 * @auther Miles Dung
 * @date May 26 2011
 *
 * This file is part of md5 net based cracker project, which
 * released under the GNU GPL v2 or v3 (whichever you like)
 * This project is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY, without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU General Public License for more details.
 */
#include <iostream>
#include "md5.h"

using namespace std;

int main(int argc, char** argv)
{
    cout << sizeof(long long) << endl;
//    long long a = 1212;
//    cout << a << endl;
//    char filename[256] = "/home/arch_miles/Desktop/FreeBSD-8.2-RELEASE-i386-disc1.iso";
//      char filename[256] = "a.iso";
////    char filename[256] = "a.txt";
    ifstream fin(argv[1], ios::binary);
//    char tmp[64]="";
//
//    while (fin)
//    {
//        fin.read(tmp, 1);
//    }
//    fin.seekg(0, ios::beg);
    if (fin)
    {
        cerr << "open err" << endl;
    }
    md5 ins(fin);
//    string a("abc");
//    cout << a << endl;
//    md5 ins(a);
    cout << ins.md5_get_hash() << endl;
    return 0;
}
